import numpy as np
input_y = np.fromfile("input/input_y.bin", dtype=np.float32)
input_dy = np.fromfile("input/input_dy.bin", dtype=np.float32)

golden = np.fromfile("output/golden.bin", dtype=np.float32)
output = np.fromfile("output/output.bin", dtype=np.float32)


def func(y, dy):
    m = np.exp(y)
    y = np.exp(y)
    
    # m = np.reciprocal(y)
    m = m+y

    m = dy/m
    m = m*np.float32(2.0)
    return m

func_result = func(input_y, input_dy)
import pdb

pdb.set_trace()